package com.egov.common.util;

/**
 * @ClassName:  FastDFSFile   
 * @Description:fastdfs文件属性
 * @date:   2019年5月16日 上午10:08:23
 *     
 */
public class FastDFSFile implements FileManagerConfig{

	/**   
	 * @Fields serialVersionUID
	 */ 
	private static final long serialVersionUID = -1058046890279245141L;
	
	private String name;

    private byte[] content;

    private String ext;

    private String md5;
    
    private String height = FILE_DEFAULT_HEIGHT;

    private String width = FILE_DEFAULT_WIDTH;

    private String author = FILE_DEFAULT_AUTHOR;

	/**   
	 * @Title:  FastDFSFile   
	 * @Description:构造器
	 * @param:  @param name
	 * @param:  @param content
	 * @param:  @param ext
	 * @param:  @param md5
	 * @param:  @param height
	 * @param:  @param width
	 * @param:  @param author  
	 * @throws   
	 */
	public FastDFSFile(String name, byte[] content, String ext, String md5, String height, String width,
                       String author) {
		super();
		this.name = name;
		this.content = content;
		this.ext = ext;
		this.md5 = md5;
		this.height = height;
		this.width = width;
		this.author = author;
	}
	
	/**   
	 * @Title:  FastDFSFile   
	 * @Description:构造器
	 * @param:  @param name
	 * @param:  @param content
	 * @param:  @param ext
	 * @param:  @param md5  
	 * @throws   
	 */
	public FastDFSFile(String name, byte[] content, String ext, String md5) {
		super();
		this.name = name;
		this.content = content;
		this.ext = ext;
		this.md5 = md5;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
}
